package tyk.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tyk.mapper.UserMapper;
import tyk.pojo.User;
import tyk.service.UserService;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    /*
     * 根据用户名获得用户
     * */
    @Override
    public User getUserByName(String username) {
        return userMapper.getUserByName(username);
    }
}
